#define _CRT_SECURE_NO_WARNINGS 1

#include"list.h"
#include<initializer_list>


void test1()
{
	zjx::list<int> lt1;
	lt1.push_back(1);
	lt1.push_back(2);
	lt1.push_back(3);
	lt1.push_back(4);
	for (auto e : lt1)
	{
		std::cout << e << " ";
	}

	std::cout << std::endl;
	lt1.push_front(10);
	lt1.pop_back();

	for (auto e : lt1)
	{
		std::cout << e << " ";
	}
	std::cout << std::endl;

	zjx::list<int> lt2 = { 10 , 20 , 30, 40 };
	lt1 = lt2;

	for (auto e : lt1)
	{
		std::cout << e << " ";
	}
	std::cout << std::endl;
}

int main()
{
	test1();
	return 0;
}